package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.GraduationRecordMapper;
import com.qingke.pojo.GraduationRecord;
import com.qingke.service.GraduationRecordService;
@Service("graduationRecordService")
public class GraduationRecordServiceImpl implements GraduationRecordService {
	@Resource
	private GraduationRecordMapper grDao;

	public int saveGraduationRecord(GraduationRecord record) {
		return grDao.insertSelective(record);
	}

	public int softDeleteGraduationRecord(int id) {
		return grDao.softDelete(id);
	}

	public GraduationRecord getGraduationRecordById(int id) {
		return grDao.selectByPrimaryKey(id);
	}

	public List<GraduationRecord> listGraduationRecord() {
		return grDao.listGraduationRecord();
	}

	public int upadteGraduationRecord(GraduationRecord record) {
		return grDao.updateByPrimaryKeySelective(record);
	}

}
